﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="BCDManager.UI.Views.BcdStoreView"
    Height="300" Width="252" mc:Ignorable="d">
	<UserControl.Resources>
		<DataTemplate x:Key="BcdStoreDataTemplate">
			<Grid Width="Auto">
				<TextBlock x:Name="tbBcdEntry" Text="{Binding}" HorizontalAlignment="Left" TextWrapping="Wrap"/>
			</Grid>
		</DataTemplate>
	</UserControl.Resources>
    <Grid>
    	<ListView Margin="9,39,9,12" x:Name="lvBcdStore" ItemsSource="{Binding BcdStoreEntries}" SelectedItem="{Binding SelectedBcdEntry, Mode=TwoWay}" ItemTemplate="{DynamicResource BcdStoreDataTemplate}" />
        
        <Button Height="25" Margin="185,8,0,0" x:Name="btnAddBcdStoreEntry" Command="{Binding CreateBcdEntryCommand}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="27">
            <ContentControl>
                <Image Source="/BCDManager;Component/Resources/Images/Add.png" Width="20.127" Height="19.897" />
            </ContentControl>
        </Button>
        
        <Button Height="25" Margin="216,8,0,0" x:Name="btnRemoveBcdStoreEntry" Command="{Binding DeleteBcdEntryCommand}" VerticalAlignment="Top" HorizontalAlignment="Left" Width="27">
            <ContentControl>
                <Image Width="20.127" Height="19.897" Source="/BCDManager;Component/Resources/Images/Remove.png" />
            </ContentControl>
        </Button>
        
        <TextBlock x:Name="tbBcdStore" Margin="9,14,0,0" VerticalAlignment="Top" Height="16" Text="BCD Store" TextWrapping="Wrap" HorizontalAlignment="Left" Width="159"/>
    </Grid>
</UserControl>
